<script>
var $ = null;
layui.use(['jquery', 'table'], function(){
	var $=layui.jquery, table = layui.table;

	### 监听复选框操作
	table.on('checkbox(LAY-role-table)', function(obj){
		var data = table.checkStatus("ID_role_table").data;
		
		var ids="";
		for(var i = 0; i < data.length; i++){
			if(i > 0) ids += ",";
			ids += data[i].id;
		}
		console.log(ids);
		$("#ID_role_ids").val(ids);
	});
});

</script>